
const buf1 = Buffer.alloc(10, 255)
// console.log(buf1);


const buf2 = Buffer.from([255, 256, 257, "1"])
// console.log(buf2);

const buf3 = Buffer.alloc(3, "abc")
// console.log(buf3);

const buf4 = Buffer.from("tést")
// console.log(buf4);

// Creates a Buffer containing the Latin-1 bytes [0x74, 0xe9, 0x73, 0x74].
const buf5 = Buffer.from('tést', "ascii");
console.log(buf5);

const buf6 = buf5.toString("base64")
console.log(buf6);

